<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--{eval $__my=$GLOBALS[_J][member];}-->
<base href="{$this->Config[site_url]}/" />
{eval $conf_charset=$this->Config['charset'];}<meta http-equiv="Content-Type" content="text/html; charset=$conf_charset" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>{$this->Config[site_name]}({$this->Config[site_domain]}){conf page_title}</title>
<meta name="Keywords" content="{$this->MetaKeywords},{conf site_name}{conf meta_keywords}" />
<meta name="Description" content="{$this->MetaDescription},{conf site_notice}{conf meta_description}" />
<link rel="shortcut icon" href="favicon.ico" />
<link href="styles/qingblog.css" rel="stylesheet" type="text/css" />
<!--{if $this->Config[theme_id]}-->
<link href="theme/{$this->Config[theme_id]}/theme.css?v={SYS_BUILD}" rel="stylesheet" type="text/css" />
<!--{/if}-->

<!--{subtemplate "common_header_css"}-->
<!--{subtemplate "common_header_js"}-->

<script type="text/javascript" src="js/min.js"></script>
<script type="text/javascript" src="js/common.js"></script>

</head>
{$additional_str}
<body>
<script type="text/javascript">
$(document).ready(function(){
  $("#username").focus(function(){$("#username_label").hide(); });
  $("#pwd").focus(function(){$("#pwd_label").hide();});
  $(".ztag").click(function(){$(".c").toggleClass("c_ok");});
});
			function guestLoginSubmit(seccode)
			{
				$(".btn").attr('disabled', true);
				if('undefined' == typeof(seccode)){
					var seccode = 0;
				}
				var username = $("#username_input").val();
				var psw = $("#password_input").val();
				var seccode = $("#seccode_input").val();
				var seccode_login = '{$this->Config[seccode_login]}';
				if(seccode_login && seccode == 0){
					if (username.length<1 || psw.length<1) {
						location.href = "index.php?mod=login";
					} else {
						showSeccodeDialog();
						return false;
					}
				}

					//$('#guest_login').submit();
				var sl = $("#savelogin").attr("checked");
				var sl = (('undefined' == typeof(sl) || false == sl) ? 0 : 1);
					$.post(
					  'ajax.php?mod=member&code=login',
					  {
					      username:username,
						  password:psw,
						  savelogin:sl,
						  seccode:seccode
					  },
					  function(d){
					  	if(d.done == false){
							$(".btn").attr('disabled', false);
							show_message(d.msg);
						} else {
							show_message(d.msg);
							location.href = d.retval;
						}
					  },
					  'json'
					);
			}
</script>
  <div class="q_main">

  
    <div class="q_index">
	  <div class="q_logo">
	    <a href="index.php" title="$this->Config['site_name']"></a>
	  </div>
	  <div class="q_login">
        <form method="POST" action="{conf site_url}/index.php?mod=login&code=dologin" id="guest_login" onKeyDown="if(event.keyCode==13) guestLoginSubmit(); return false;"  autocomplete="off">
		<!--{if $this->Config['seccode_login']}-->
			<input type="hidden" name="seccode" id="seccode_input" value="">
		<!--{/if}-->
          <div>
		    <ul>
			  <li class="li_name">
			    <div style="position:relative">
				  <label id="username_label">用户名/昵称/Email</label>
				  <input id="username" type="text" name="username" style="position:absolute;">
				</div>
			  </li>
			  <li class="li_name">
			    <div style="position:relative">
				  <label id="pwd_label">密码</label>
				  <input id="pwd" type="password"  name="password" style="position:absolute;">
				</div>
			  </li>
			  <li class="li_name libtn">
			    <input class="btn" type="button" value="" onclick="guestLoginSubmit();return false;">
			  </li>
			</ul>
			<ul class="w_account">
			  <li>
			    <a title="注册{conf site_name}" href="{conf site_url}/index.php?mod=member">注册{conf site_name}</a>
			  </li>
			  <li class="chkbox">
              <span class="c ztag c_ok"><input id="c0" type="checkbox" name="savelogin"></span>
			   <a tabindex="3" class="ztag" href="javascript:void(0)">自动登录</a>
			   <a href="{conf site_url}/index.php?mod=get_password" class="forgetPass">忘记密码？</a>
			  </li>
			  <li>
			  </li>
			</ul>
		  </div>
        </form>
	  </div>
	</div>
  </div>
  <!-- JS消息提示层 show_message('发布成功') -->
<div id="show_message_area"></div>
{eval echo $this->js_show_msg();}
{$GLOBALS[schedule_html]}
<!--{eval if($GLOBALS['jsg_schedule_mark'] || jsg_getcookie('jsg_schedule')) echo jsg_schedule();}-->
<!-- Ajax端内容返回 -->
<div id="ajax_output_area"></div>
</body>
</html>
